﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCZS.aspx.cs" Inherits="Xiaov.SmartWeb.Application.StatisticsReport.SCZS" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type='text/javascript' src='../../SupCan/binary/dynaload.js?60'></script>
    <script type="text/javascript" language="javascript">
        function OnReady(id) {
            if (id == "AF") {
                if ("<%=Tn %>" != "ZJYB_ZJYB00") {
                    var ddlnf = document.getElementById("ddl_Year");
                    var nf = ddlnf.options[ddlnf.selectedIndex].value;   //获取年份
                    var ddlyf = document.getElementById("ddl_Month");
                    var yf = ddlyf.options[ddlyf.selectedIndex].value;   //获取月份
                    var ddlOwner = document.getElementById("ddl_Owner");
                    var dwbm = ddlOwner.options[ddlOwner.selectedIndex].value; //获取单位编码
                    document.AF.func("Build", "<%=Tn %>" + ".xml");
                    document.AF.func("Load", "SCZSData.aspx?nf=" + escape(nf) + "&yf=" + escape(yf) + "&dwbm=" + escape(dwbm) + "&bbbm=" + escape("<%=Tn %>"));
                }
                else {
                    document.AF.func("Build", "<%=Tn %>" + ".xml");
                    document.AF.func("Load", "SCZSData.aspx?bbbm=" + escape("<%=Tn %>"));
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="tools">
        <asp:DropDownList ID="ddl_Owner" runat="server">
        </asp:DropDownList>
        <asp:DropDownList ID="ddl_Year" runat="server">
        </asp:DropDownList>
        <asp:DropDownList ID="ddl_Month" runat="server">
        </asp:DropDownList>
        <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" />
    </div>
    <div style="width: 100%; height: 99%; position: relative">
        <script language="javascript" type="text/javascript">
            insertTreeList('AF', '') 
        </script>
    </div>
    </form>
</body>
</html>
